﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ShowScheduleScreen.aspx.cs" Inherits="METU_CMT.ShowScheduleScreen" %>
<%@ Register TagPrefix="cc1" Namespace="BunnyBear" Assembly="msgBox" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" Width="70%" HorizontalAlign="Center" CssClass="chp-grid"
        Style="font-size: 15px; margin-left: 50px; margin-top: 50px;">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell runat="server">
                <asp:GridView runat="server" ID="dtgSchedule" AutoGenerateColumns="false" ShowHeaderWhenEmpty="true"
                    OnPreRender="OnDtgSchedulePreRender" CssClass="chp-grid">
                    <Columns>
                        <asp:BoundField DataField="Description" HeaderText="Event" />
                        <asp:BoundField DataField="DueDate" HeaderText="Due Date" />
                        <asp:BoundField DataField="UploadTime" HeaderText="Upload Time" />
                        <asp:TemplateField HeaderText="Document Name">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lnkBtnDownload" OnClick="OnLnkBtnDownloadClicked"
                                    Text='<%# Bind("DocumentName") %>'></asp:LinkButton>
                                <asp:HiddenField runat="server" ID="hfEventId" Value='<%# Bind("EventId") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="SubmitterUserName" HeaderText="Submitter" />
                        <asp:TemplateField HeaderText="Actions">
                            <ItemTemplate>
                                <asp:HiddenField runat="server" ID="hfId" Value='<%# Bind("TeamId") %>' />
                                <asp:LinkButton runat="server" ID="lnkBtnUpload" OnClick="OnLnkBtnUploadClicked"
                                    Text="Upload"></asp:LinkButton>
                                <asp:FileUpload runat="server" ID="fuDocumentUpload" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:LinkButton runat="server" ID="lnkBtnDownloadAllDocuments" OnClick="OnLnkBtnDownloadAllDocumentsClicked"
                    Text="Download All Documents"></asp:LinkButton>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:LinkButton runat="server" ID="lnkBtnExportToGoogleCalender" OnClick="OnLnkBtnExportToGoogleCalenderClicked"
                    Text="Export To Google Calendar"></asp:LinkButton>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <cc1:msgBox ID="MsgBox1" runat="server"></cc1:msgBox>
</asp:Content>
